export class Wdetail {

  id: number;

  title: string;

  resources: string;

  author: string;

  owner: string;

  newsType: string;

  content: string;

  isAdvantage: boolean;

  imgUrl: string;

  releaseTime: Date;

  outTime: Date;

  constructor(opts: {
                id?: number;
                title?: string;
                resources?: string;
                author?: string;
                owner?: string;
                newsType?: string;
                content?: string;
                isAdvantage?: boolean;
                imgUrl?: string;
                releaseTime?: Date;
                outTime?: Date;
              } = {}
  ) {
    this.id = opts.id;
    this.title = opts.title;
    this.resources = opts.resources;
    this.author = opts.author;
    this.owner = opts.owner;
    this.newsType = opts.newsType;
    this.content = opts.content;
    this.isAdvantage = opts.isAdvantage;
    this.imgUrl = opts.imgUrl;
    this.releaseTime = opts.releaseTime;
    this.outTime = opts.outTime;

  }

}
